/**
 * User: zsquirrel
 * Date: 2020/5/1
 * Time: 10:22 上午
 */
package com.cskaoyan.mall.dao;

import com.cskaoyan.mall.model.Order;
import com.cskaoyan.mall.model.bo.ChangeOrderBO;
import com.cskaoyan.mall.model.bo.OrderRequestParamBO;
import com.cskaoyan.mall.model.vo.StateOrderVO;

import java.util.List;

public interface OrderDao {
    Integer getTotal(OrderRequestParamBO param);

    List<Order> ordersByPage(OrderRequestParamBO param);

    Order getOrderInfo(String id);

    void changeOrder(ChangeOrderBO changeOrderBO);

    void deleteOrder(String id);

    void placeOrder(Order order);

    List<StateOrderVO> getOrderByState(String state, Integer userId);
}
